#define _CRT_SECURE_NO_WARNINGS 1
#include<cstdio>
#include<iostream>

using namespace std;

int main()
{
    int x;
    while (true)
    {
        cin >> x;
        if (x == 0)
            break;
        else
        {
            for (int i = 1; i <= x; i++)
                printf("%d ", i);
        }
        printf("\n");
    }
    return 0;
}
